package com.thm.tfast.modules.sys.model.dto.permission;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author THM
 * @date 2022/10/29
 * @desc 权限修改dto
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PermissionUpdateDto {
    @ApiModelProperty(value = "权限ID", required = true)
    @NotNull(message = "权限ID不能为空")
    private Long id;

    @ApiModelProperty(value = "权限标识")
    @Size(max = 12, message = "权限标识不能超过12位")
    private String permission;

    @ApiModelProperty(value = "描述")
    @Size(max = 36, message = "描述不能超过12位")
    private String description;
}
